package dataPersistence.dto;

import java.util.ArrayList;
import java.util.Collection;

import coreModel.Barcode;

public class ProductContainerDTO 
{
	private String name;
	private String productContainerID;
	private String parentID;
	private ArrayList<String> children;

	
	/**
	 * @return the parentID
	 */
	public String getParentID()
	{
		return parentID;
	}

	/**
	 * @param parentID the parentID to set
	 */
	public void setParentID(String parentID)
	{
		this.parentID = parentID;
	}

	/**
	 * @return the name
	 */
	public String getName()
	{
		return name;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name)
	{
		this.name = name;
	}

	/**
	 * @return the productContainerID
	 */
	public String getProductContainerID()
	{
		return productContainerID;
	}


	/**
	 * @param string the productContainerID to set
	 */
	public void setProductContainerID(String string)
	{
		this.productContainerID = string;
	}

	public ArrayList<String> getChildrenIds()
	{
		if(children==null)
			return new ArrayList<String>();
		return children;
	}
	public void setChildrenIds(ArrayList<String> childrenList)
	{
		children= childrenList;
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ProductContainerDTO other = (ProductContainerDTO) obj;
		if (productContainerID == null) {
			if (other.productContainerID != null)
				return false;
		} else if (!productContainerID.equals(other.productContainerID))
			return false;
		return true;
	}
	
	
	
}
